﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using NCMIS.ObjectModel.MetaData;

namespace NCMIS.ObjectModel
{
    /// <summary>
    /// Rendition collection wrapper, for XML serialization of a <see cref="NCMIS.ObjectModel.CmisObject"/> array.
    /// </summary>
    [CollectionDataContract(ItemName = "object", Name = "objects", Namespace = CmisNs.Cmism)]
    public class CmisObjects : List<CmisObject>
    {
        /// <summary>
        /// Empty constructor.
        /// </summary>
        public CmisObjects() { }

        /// <summary>
        /// Creates a rendition collection instance for XML serialization.
        /// </summary>
        /// <param name="cmisObjects">The CMISObject collection.</param>
        public CmisObjects(List<CmisObject> cmisObjects) : base(cmisObjects) { }
    }
}
